<%@page import="com.gym.utility.Utility"%>
<%@page import="com.gym.model.entity.User"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/form.css" />

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<script>
		function goBack() {
		    window.history.back()
		}
		</script>
<body background="sfondo.jpg">
<%
User user = (User) request.getSession().getAttribute("user");
%>
<div id="header" style="padding-left: 40%">
	<img alt="" src="logo.png" width="20%" height="20%">
</div>
<div id="nav">
	
 	<ul class="menu">
 		<li style="padding-buttom: 1%;"> <a href="javascript: goBack()"> <img alt="torna indietro" width="40px" height="20px" src="back-arrow.png"> </a></li>	
 		<li><a href="vaiIndex.do">HOME</a></li>
		<li><a href="vaiChisiamo.do">CHI SIAMO</a></li>
		<li class="active"><a href="showAllCourse.do">CORSI</a></li>
		<li class="active"><a href="showAllTrainer.do">TRAINER</a></li>
		<li class="active"><a href="showWeekPlanning.do">PLANNING</a></li>
		<li class="active"><a href="vaiGallery.do">GALLERY</a></li>
		<li><a href="vaiContatti.do">CONTATTI</a></li>
	 		
	<!--<li><a href="#">Contact</a></li> -->
	<%if(user==null){%>
		<li><a href="vaiLogin.do">Login</a></li>
		<li><a href="vaiRegistrazione.do">Registrati</a></li>
	<%}%>		
	</ul>
	<%if(user!=null){%>	
		<ul id="saluto">
			<li style="font-size:20px;">
				Ciao <a href="vaiDashboardCustomer.do" title="profilo" ><%=Utility.primaParte(user.getEmail())%></a>
				  |  <a href="logout.do">logout</a>
			</li>
		</ul>
	<%}%>
	
	
</div>



</body>
</html>